
/* 主窗口背景 */
QWidget#mainWidget {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #667eea, stop: 1 #764ba2);
}

QPushButton {
    border: none;  /*移除所有边框*/
    background: transparent; /*背景透明*/
}
/*关闭窗口按钮*/
QPushButton#closeBtn {
    image:url(:/qss/icon/close.png);
}
QPushButton#closeBtn:hover{
    image:url(:/qss/icon/close_press.png);
}
QPushButton#closeBtn:pressed{
    image:url(:/qss/icon/close_hover.png);
}


/* 输入框获得焦点时的效果 */
QLineEdit#loginAccount:focus,
QLineEdit#loginPassword:focus {
    border: 1px solid #4a90e2;
    background-color: rgba(255, 255, 255, 0.95);
}

/* 登录输入框通用样式 */
QLineEdit#loginAccount,
QLineEdit#loginPassword {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 10px;
    font-size: 14px;
    color: #333;
}

/* 登录按钮 */
QWidget QPushButton#loginButton {
    background-color: #4a90e2;
    color: white;
    border-radius: 15px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
}
QWidget QPushButton#loginButton:hover {
    background-color: #3a7bc8;
}
QWidget QPushButton#loginButton:pressed {
    background-color: #2a6bb4;
}

/* 注册按钮 */
QWidget QPushButton#registerBtn {
    background-color: #4a90e2;
    color: white;
    border-radius: 15px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
}
QWidget QPushButton#registerBtn:hover {
    background-color: #3a7bc8;
}
QWidget QPushButton#registerBtn:pressed {
    background-color: #2a6bb4;
}

/* 输入框占位符文本样式 */
QLineEdit#loginAccount::placeholder,
QLineEdit#loginPassword::placeholder {
    color: #999;
    font-style: italic;
}
